package net.zoneland.knowledge.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Optional;

import net.zoneland.knowledge.enums.CorrectStatusEnum;
import net.zoneland.knowledge.enums.CorrectTypeEnum;

/**
 * 纠错对象.
 * @author zmq
 * 2021/10/8 16:35
 */
public class ErrorCorrection implements Serializable {
    /**
     * 主键.
     */
    private String id;
    /**
     * 描述.
     */
    private String description;
    /**
     * 创建人uid.
     */
    private String creatorUid;
    /**
     * 对应题库的id.
     */
    private String esQuestionId;
    /**
     * 创建人姓名.
     */
    private String creatorName;
    /**
     * 纠错类型.
     */
    private String correctType;
    /**
     * 纠错状态.
     */
    private CorrectStatusEnum status;
    /**
     * 处理人uid.
     */
    private String handlerUid;
    /**
     * 处理人姓名.
     */
    private String handlerName;
    /**
     * 创建时间.
     */
    private Date createTime;
    /**
     * 更新时间.
     */
    private Date updateTime;

    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getId() {
        return id;
    }

    /**
     * 设置 字段值.
     * @param id 字段值
     */
    public void setId(final String id) {
        this.id = id;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getEsQuestionId() {
        return esQuestionId;
    }
    /**
     * 设置 字段值.
     * @param esQuestionId 字段值
     */
    public void setEsQuestionId(final String esQuestionId) {
        this.esQuestionId = esQuestionId;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getDescription() {
        return description;
    }
    /**
     * 设置 字段值.
     * @param description 字段值
     */
    public void setDescription(final String description) {
        this.description = description;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getCreatorUid() {
        return creatorUid;
    }
    /**
     * 设置 字段值.
     * @param creatorUid 字段值
     */
    public void setCreatorUid(final String creatorUid) {
        this.creatorUid = creatorUid;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getCreatorName() {
        return creatorName;
    }
    /**
     * 设置 字段值.
     * @param creatorName 字段值
     */
    public void setCreatorName(final String creatorName) {
        this.creatorName = creatorName;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getCorrectType() {
        return correctType;
    }
    /**
     * 设置 字段值.
     * @param correctType 字段值
     */
    public void setCorrectType(final String correctType) {
        this.correctType = correctType;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public CorrectStatusEnum getStatus() {
        return status;
    }
    /**
     * 设置 字段值.
     * @param status 字段值
     */
    public void setStatus(final CorrectStatusEnum status) {
        this.status = status;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getHandlerUid() {
        return handlerUid;
    }
    /**
     * 设置 字段值.
     * @param handlerUid 字段值
     */
    public void setHandlerUid(final String handlerUid) {
        this.handlerUid = handlerUid;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public String getHandlerName() {
        return handlerName;
    }
    /**
     * 设置 字段值.
     * @param handlerName 字段值
     */
    public void setHandlerName(final String handlerName) {
        this.handlerName = handlerName;
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public Date getCreateTime() {
        return Optional.ofNullable(createTime).map(it -> (Date) it.clone()).orElse(null);
    }
    /**
     * 设置 字段值.
     * @param createTime 字段值
     */
    public void setCreateTime(final Date createTime) {
        this.createTime = Optional.ofNullable(createTime).map(it -> (Date) it.clone()).orElse(null);
    }
    /**
     * 获取 字段值.
     * @return 字段值
     */
    public Date getUpdateTime() {
        return Optional.ofNullable(updateTime).map(it -> (Date) it.clone()).orElse(null);
    }
    /**
     * 设置 字段值.
     * @param updateTime 字段值
     */
    public void setUpdateTime(final Date updateTime) {
        this.updateTime = Optional.ofNullable(updateTime).map(it -> (Date) it.clone()).orElse(null);
    }
}
